<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <div class="layui-form-item">
            <label class="layui-form-label">认领人</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" placeholder="" value="{$row.claim_user_name|default=''}" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" value="{$row.status_cn|default=''}" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">领取时间</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" placeholder="" value="{$row.claim_time|default=''}" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">完成时间</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" placeholder="" value="{$row.finish_time|default=''}" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">现场图片</label>
            <div class="layui-input-block" style="height: 200px;overflow: auto">
                <img style="height: 100%" src="{$row.finish_img|default=''}" data-image>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label required">评价</label>
            <div class="layui-input-block">
                <textarea name="evaluate_desc" class="layui-textarea" lay-verify="required" lay-reqtext="请输评价" placeholder="请输入评价(字数不超过100个字)">{$row.evaluate_desc|raw|default=''}</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">得分</label>
            <div class="layui-input-block">
                <input type="number" name="score" class="layui-input" lay-verify="required" lay-reqtext="请输得分" placeholder="请输入得分(得分范围:1~10)" value="{$row.score|default=''}">
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit lay-filter="save_form">确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
<script>
    layui.use(['form', 'layer'], function(){
        var $ = layui.$;

        // 放大图片
        $('body').on('click', '[data-image]', function () {
            var title = $(this).attr('data-image'),
                src = $(this).attr('src'),
                alt = $(this).attr('alt');
            var photos = {
                "title": title,
                "id": Math.random(),
                "data": [
                    {
                        "alt": alt,
                        "pid": Math.random(),
                        "src": src,
                        "thumb": src
                    }
                ]
            };
            layer.photos({
                photos: photos,
                anim: 5
            });
            return false;
        });
    });
</script>